.character-panel-container {
  width: 250px;
  padding: 15px;
  background-color: #f8f9fa;
  border-right: 1px solid #ddd;
  margin-right: 15px;
}

.character-list {
  margin-bottom: 15px;
}

.character-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  gap: var(--spacing-xs) var(--spacing-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  background-color: var(--background-light-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal) ease;
  position: relative;
  overflow: hidden;
}

.character-card .character-content {
  display: contents;
}

.character-card.empty {
  display: none;
}

.character-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: loading 1.2s linear infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.character-card.loaded::before {
  display: none;
}

.character-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background-color: var(--background-lighter-color);
  border-color: var(--primary-color);
}

.character-card .character-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--border-light-color);
  transition: all var(--transition-normal) ease;
  grid-row: span 2;
  align-self: center;
  justify-self: center;
}

.character-card:hover .character-avatar {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.character-card .character-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95em;
  align-self: end;
  padding-left: var(--spacing-sm);
}

.character-card .character-status {
  font-size: 0.75em;
  color: var(--text-light-color);
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: start;
  padding-left: var(--spacing-sm);
}

.character-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success-color);
}

.character-status.offline::before {
  background-color: var(--text-lighter-color);
}

.add-character-button {
  width: 100%;
  padding: 8px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-character-button:hover {
  background-color: #218838;
}
